/* This class contains device specific attributes*/

package controlSoftware.DataProcess;

import controlSoftware.GUI.User;

public class Device {

	private User user;
	private int id;
	private SensorData latestLocation;

	//public Device(int id, String firstName, String lastName) {
	//	this.id = id;
	//	this.user = new User();
	//}

	public Device(int id) {
		this.id = id;
		this.user = new User(); // creates a new user object	
	}

	public Device(int id, User user) {
		this.id = id;
		this.user = user; 
	}
	
	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public SensorData getLatestLocation() {
		return latestLocation;
	}

	public void setLatestLocation(SensorData latestLocation) {
		this.latestLocation = latestLocation;
	}
	
	
}
